package com.hivetech.repositories;

import com.hivetech.models.Report;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface ReportRepository extends MongoRepository<Report, String> {
    Page<Report> findByNameOrDate(String name, String date, Pageable pageable);

    Report findByNameAndDate(String name, String date);

    Page<Report> findAll(Pageable pageable);

    List<Report> findAllByDate(String date);

    Page<Report> findByName(String name, Pageable pageable);
}
